var app=angular.module("denlu",[])
var myff=function(){
    return{
        msg:'hi,我是薛之谦',
        test:function(){
            alert("hi,我是test方法")
        }
    }
}
app.factory("myfs",myff)
      app.controller("denluyi",function($scope,myfs){
          $scope.data=myfs.msg;
          $scope.bb="2222"
      })